#pragma once
#include "GameSceneState.h"
#include "BackgroundImage.h"
#include "Menu.h"
#include "Textout.h"
#include "AudioOut.h"
#include "jsonreader.h"

class GameSceneTalk : public GameSceneState
{
public:
	~GameSceneTalk();
	static GameSceneState* Instance();
	void Init();
	void Draw();
	DWORD Update(const KeyInput* input);
	void Reset();

	void OnEvent(GameBase* pObj, UINT uMsg, WPARAM wParam, LPARAM lParam);

private:
	GameSceneTalk();

	string TextInfo();

	LPDIRECT3DTEXTURE9 backTex;

	BackgroundImage* back;

	Textout* talk;

	DWORD stageinfo;
	DWORD nowviewNo;
	DWORD idinfo;

	DWORD statetickCount;

	static GameSceneTalk* _p_this;
};